package cn.edu.scau.cmi.ChenKaihui.composite.consistent;

public class ConsistentLeaf extends ConsistentComponent{

	public ConsistentLeaf(String name) {
		this.name = name;
	}
	
	@Override
	void addChild(ConsistentComponent con) {
		System.out.println("对不起，最低一级员工(叶子节点)不能添加下属");
		
	}

	@Override
	void delete(ConsistentComponent con) {
		System.out.println("对不起，最低一级员工(叶子节点)没有下属，无法删除");
	}

	@Override
	String showMessage() {
		// TODO Auto-generated method stub
		return null;
	}

}
